-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommandLine.cs
23 lines (19 loc) · 894 Bytes
/
CommandLine.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// <copyright file="CommandLine.cs" company="RossKing">
// Copyright (c) RossKing. All rights reserved.
// </copyright>
namespace EBook.Downloader;
using System.CommandLine;
/// <summary>
/// Command line arguments, and options.
/// </summary>
internal static class CommandLine
{
/// <summary>
/// Gets the library path argument.
/// </summary>
public static CliArgument<DirectoryInfo> LibraryPathArgument { get; } = new CliArgument<DirectoryInfo>("CALIBRE-LIBRARY-PATH") { Description = "The path to the directory containing the calibre library", Arity = ArgumentArity.ExactlyOne }.AcceptExistingOnly();
/// <summary>
/// Gets the use content server argument.
/// </summary>
public static CliOption<bool> UseContentServerOption { get; } = new("-s", "--use-content-server") { Description = "Whether to use the content server or not", Recursive = true };
}