parsec_service/utils/cli.rs
1// Copyright 2021 Contributors to the Parsec project.
2// SPDX-License-Identifier: Apache-2.0
3//! Command Line Interface configuration
4
5// WARNING: This file should be only updated in a non-breaking way. CLI flags should not be
6// removed, new flags should be tested.
7// See https://github.com/parallaxsecond/parsec/issues/392 for details.
8#![allow(unused_qualifications)]
9
10use clap::Parser;
11
12/// Parsec is the Platform AbstRaction for SECurity, a new open-source initiative to provide a
13/// common API to secure services in a platform-agnostic way.
14///
15/// Parsec documentation is available at:
16/// https://parallaxsecond.github.io/parsec-book/index.html
17///
18/// Most of Parsec configuration comes from its configuration file.
19/// Please check the documentation to find more about configuration:
20/// https://parallaxsecond.github.io/parsec-book/user_guides/configuration.html
21#[derive(Parser, Debug)]
22pub struct Opts {
23 /// Sets the configuration file path
24 #[structopt(short, long, default_value = "config.toml")]
25 pub config: String,
26}