添加了命令行信息提示

This commit is contained in:
codeboss 2024-04-20 11:34:33 +08:00
parent 7d2254c09a
commit 5c3eaea0c2
6 changed files with 17 additions and 8 deletions

View File

@ -63,6 +63,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<IncludePath>$(SolutionDir)libToken;$(SolutionDir)libSyntax;$(SolutionDir)libParse;$(IncludePath)</IncludePath> <IncludePath>$(SolutionDir)libToken;$(SolutionDir)libSyntax;$(SolutionDir)libParse;$(IncludePath)</IncludePath>
<LibraryPath>$(SolutionDir)$(Platform)\$(Configuration)\;$(LibraryPath)</LibraryPath> <LibraryPath>$(SolutionDir)$(Platform)\$(Configuration)\;$(LibraryPath)</LibraryPath>
<TargetName>nsc</TargetName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
</PropertyGroup> </PropertyGroup>

View File

@ -6,9 +6,9 @@
<LocalDebuggerCommandArguments>-path "D:\手作小说\科学+修仙+创造世界"</LocalDebuggerCommandArguments> <LocalDebuggerCommandArguments>-path "D:\手作小说\科学+修仙+创造世界"</LocalDebuggerCommandArguments>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<QtLastBackgroundBuild>2024-05-14T14:41:57.2070673Z</QtLastBackgroundBuild> <QtLastBackgroundBuild>2024-04-20T03:22:10.7942611Z</QtLastBackgroundBuild>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<QtLastBackgroundBuild>2024-05-14T14:41:57.3345191Z</QtLastBackgroundBuild> <QtLastBackgroundBuild>2024-04-20T03:22:10.9057416Z</QtLastBackgroundBuild>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -9,6 +9,7 @@
#include <tokens_novel.h> #include <tokens_novel.h>
#include <QDir> #include <QDir>
#include <QTextStream> #include <QTextStream>
#include <iostream>
#include "novelparser.h" #include "novelparser.h"
#include "htmlprint.h" #include "htmlprint.h"
@ -18,6 +19,13 @@ using namespace example_novel;
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
QCoreApplication a(argc, argv); QCoreApplication a(argc, argv);
if (argc != 3 || !strcmp(argv[1], "-path")) {
std::cout << "nsc(WsNovelStoryCompiler故事线编译器)" << std::endl;
std::cout << "版本V1.00" << std::endl;
std::cout << "nsc -path path-to-dir" << std::endl;
exit(0);
}
auto sdir = QDir::current(); auto sdir = QDir::current();
if (argc >= 3 && !strcmp(argv[1], "-path")) { if (argc >= 3 && !strcmp(argv[1], "-path")) {
auto tdir = QDir(QString::fromLocal8Bit(argv[2])); auto tdir = QDir(QString::fromLocal8Bit(argv[2]));

View File

@ -5,9 +5,9 @@
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<QtLastBackgroundBuild>2024-05-14T14:41:57.4574177Z</QtLastBackgroundBuild> <QtLastBackgroundBuild>2024-04-20T03:22:10.9460811Z</QtLastBackgroundBuild>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<QtLastBackgroundBuild>2024-05-14T14:41:57.6138975Z</QtLastBackgroundBuild> <QtLastBackgroundBuild>2024-04-20T03:22:11.0425454Z</QtLastBackgroundBuild>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -5,9 +5,9 @@
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<QtLastBackgroundBuild>2024-05-14T14:41:57.7198953Z</QtLastBackgroundBuild> <QtLastBackgroundBuild>2024-04-20T03:22:11.2004771Z</QtLastBackgroundBuild>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<QtLastBackgroundBuild>2024-05-14T14:41:58.0299867Z</QtLastBackgroundBuild> <QtLastBackgroundBuild>2024-04-20T03:22:11.2833216Z</QtLastBackgroundBuild>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -2,9 +2,9 @@
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup /> <PropertyGroup />
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<QtLastBackgroundBuild>2024-05-14T14:41:58.1550717Z</QtLastBackgroundBuild> <QtLastBackgroundBuild>2024-04-20T03:22:11.0831981Z</QtLastBackgroundBuild>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<QtLastBackgroundBuild>2024-05-14T14:41:58.3722545Z</QtLastBackgroundBuild> <QtLastBackgroundBuild>2024-04-20T03:22:11.1597776Z</QtLastBackgroundBuild>
</PropertyGroup> </PropertyGroup>
</Project> </Project>