summaryrefslogtreecommitdiffstatshomepage
path: root/ui-commit.h
blob: 40bcb311502fa9f79cf94866af0352f9c649c4ec (plain)
1
2
3
4
5
6
#ifndef UI_COMMIT_H
#define UI_COMMIT_H

extern void cgit_print_commit(char *hex);

#endif /* UI_COMMIT_H */
s="cp">#include "src/command_line.h" #include <QDebug> #include <QApplication> CommandLineParsedOptions parse_command_line(QCommandLineParser &parser, QApplication &app) { QCommandLineOption fileOption({"f", "file"}, QCoreApplication::translate("cmdline", "Data export to open."), "file"); parser.addOption(fileOption); const QCommandLineOption help_option = parser.addHelpOption(); const QCommandLineOption version_option = parser.addVersionOption(); QString outbox_filename; if (!parser.parse(app.arguments())) return {CommandLineError, parser.errorText(), outbox_filename}; if (parser.isSet(help_option) or parser.isSet("help-all")) return {CommandLineHelpRequested, nullptr, outbox_filename}; if (parser.isSet(version_option)) return {CommandLineVersionRequested, nullptr, outbox_filename}; outbox_filename = parser.value(fileOption); return {CommandLineOk, nullptr, outbox_filename}; }